<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><link rel="stylesheet" type="text/css" href="style.css" /><script type="text/javascript" src="highlight.js"></script></head><body><pre><span class="hs-comment">-- | Compile-time settings</span><span>
</span><span id="line-2"></span><span class="hs-keyword">module</span><span> </span><span class="hs-identifier">GHC.Settings.Constants</span><span> </span><span class="hs-keyword">where</span><span>
</span><span id="line-3"></span><span>
</span><span id="line-4"></span><span class="hs-keyword">import</span><span> </span><span class="annot"><a href="GHC.Prelude.html"><span class="hs-identifier">GHC.Prelude</span></a></span><span>
</span><span id="line-5"></span><span>
</span><span id="line-6"></span><span class="hs-keyword">import</span><span> </span><span class="annot"><a href="GHC.Settings.Config.html"><span class="hs-identifier">GHC.Settings.Config</span></a></span><span>
</span><span id="line-7"></span><span>
</span><span id="line-8"></span><span class="annot"><a href="GHC.Settings.Constants.html#hiVersion"><span class="hs-identifier hs-type">hiVersion</span></a></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><span class="hs-identifier hs-type">Integer</span></span><span>
</span><span id="line-9"></span><span id="hiVersion"><span class="annot"><span class="annottext">hiVersion :: Integer
</span><a href="GHC.Settings.Constants.html#hiVersion"><span class="hs-identifier hs-var hs-var">hiVersion</span></a></span></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">String -&gt; Integer
forall a. Read a =&gt; String -&gt; a
</span><a href="../../base/src/Text.Read.html#read"><span class="hs-identifier hs-var">read</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">String
</span><a href="../../ghc-boot/src/GHC.Version.html#cProjectVersionInt"><span class="hs-identifier hs-var">cProjectVersionInt</span></a></span><span> </span><span class="annot"><span class="annottext">String -&gt; String -&gt; String
forall a. [a] -&gt; [a] -&gt; [a]
</span><a href="../../base/src/GHC.Base.html#%2B%2B"><span class="hs-operator hs-var">++</span></a></span><span> </span><span class="annot"><span class="annottext">String
</span><a href="../../ghc-boot/src/GHC.Version.html#cProjectPatchLevel"><span class="hs-identifier hs-var">cProjectPatchLevel</span></a></span><span class="hs-special">)</span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><span class="hs-identifier hs-type">Integer</span></span><span>
</span><span id="line-10"></span><span>
</span><span id="line-11"></span><span class="hs-comment">-- All pretty arbitrary:</span><span>
</span><span id="line-12"></span><span>
</span><span id="line-13"></span><span class="annot"><a href="GHC.Settings.Constants.html#mAX_TUPLE_SIZE"><span class="hs-identifier hs-type">mAX_TUPLE_SIZE</span></a></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><span class="hs-identifier hs-type">Int</span></span><span>
</span><span id="line-14"></span><span id="mAX_TUPLE_SIZE"><span class="annot"><span class="annottext">mAX_TUPLE_SIZE :: Int
</span><a href="GHC.Settings.Constants.html#mAX_TUPLE_SIZE"><span class="hs-identifier hs-var hs-var">mAX_TUPLE_SIZE</span></a></span></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Int
</span><span class="hs-number">62</span></span><span> </span><span class="hs-comment">-- Should really match the number</span><span>
</span><span id="line-15"></span><span>                    </span><span class="hs-comment">-- of decls in Data.Tuple</span><span>
</span><span id="line-16"></span><span>
</span><span id="line-17"></span><span class="annot"><a href="GHC.Settings.Constants.html#mAX_CTUPLE_SIZE"><span class="hs-identifier hs-type">mAX_CTUPLE_SIZE</span></a></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><span class="hs-identifier hs-type">Int</span></span><span>   </span><span class="hs-comment">-- Constraint tuples</span><span>
</span><span id="line-18"></span><span id="mAX_CTUPLE_SIZE"><span class="annot"><span class="annottext">mAX_CTUPLE_SIZE :: Int
</span><a href="GHC.Settings.Constants.html#mAX_CTUPLE_SIZE"><span class="hs-identifier hs-var hs-var">mAX_CTUPLE_SIZE</span></a></span></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Int
</span><span class="hs-number">62</span></span><span>     </span><span class="hs-comment">-- Should match the number of decls in GHC.Classes</span><span>
</span><span id="line-19"></span><span>
</span><span id="line-20"></span><span class="annot"><a href="GHC.Settings.Constants.html#mAX_SUM_SIZE"><span class="hs-identifier hs-type">mAX_SUM_SIZE</span></a></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><span class="hs-identifier hs-type">Int</span></span><span>
</span><span id="line-21"></span><span id="mAX_SUM_SIZE"><span class="annot"><span class="annottext">mAX_SUM_SIZE :: Int
</span><a href="GHC.Settings.Constants.html#mAX_SUM_SIZE"><span class="hs-identifier hs-var hs-var">mAX_SUM_SIZE</span></a></span></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Int
</span><span class="hs-number">62</span></span><span>
</span><span id="line-22"></span><span>
</span><span id="line-23"></span><span class="hs-comment">-- | Default maximum depth for both class instance search and type family</span><span>
</span><span id="line-24"></span><span class="hs-comment">-- reduction. See also #5395.</span><span>
</span><span id="line-25"></span><span class="annot"><a href="GHC.Settings.Constants.html#mAX_REDUCTION_DEPTH"><span class="hs-identifier hs-type">mAX_REDUCTION_DEPTH</span></a></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><span class="hs-identifier hs-type">Int</span></span><span>
</span><span id="line-26"></span><span id="mAX_REDUCTION_DEPTH"><span class="annot"><span class="annottext">mAX_REDUCTION_DEPTH :: Int
</span><a href="GHC.Settings.Constants.html#mAX_REDUCTION_DEPTH"><span class="hs-identifier hs-var hs-var">mAX_REDUCTION_DEPTH</span></a></span></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Int
</span><span class="hs-number">200</span></span><span>
</span><span id="line-27"></span><span>
</span><span id="line-28"></span><span class="hs-comment">-- | Default maximum constraint-solver iterations</span><span>
</span><span id="line-29"></span><span class="hs-comment">-- Typically there should be very few</span><span>
</span><span id="line-30"></span><span class="annot"><a href="GHC.Settings.Constants.html#mAX_SOLVER_ITERATIONS"><span class="hs-identifier hs-type">mAX_SOLVER_ITERATIONS</span></a></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><span class="hs-identifier hs-type">Int</span></span><span>
</span><span id="line-31"></span><span id="mAX_SOLVER_ITERATIONS"><span class="annot"><span class="annottext">mAX_SOLVER_ITERATIONS :: Int
</span><a href="GHC.Settings.Constants.html#mAX_SOLVER_ITERATIONS"><span class="hs-identifier hs-var hs-var">mAX_SOLVER_ITERATIONS</span></a></span></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Int
</span><span class="hs-number">4</span></span><span>
</span><span id="line-32"></span><span>
</span><span id="line-33"></span><span class="annot"><a href="GHC.Settings.Constants.html#wORD64_SIZE"><span class="hs-identifier hs-type">wORD64_SIZE</span></a></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><span class="hs-identifier hs-type">Int</span></span><span>
</span><span id="line-34"></span><span id="wORD64_SIZE"><span class="annot"><span class="annottext">wORD64_SIZE :: Int
</span><a href="GHC.Settings.Constants.html#wORD64_SIZE"><span class="hs-identifier hs-var hs-var">wORD64_SIZE</span></a></span></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Int
</span><span class="hs-number">8</span></span><span>
</span><span id="line-35"></span><span>
</span><span id="line-36"></span><span class="hs-comment">-- Size of float in bytes.</span><span>
</span><span id="line-37"></span><span class="annot"><a href="GHC.Settings.Constants.html#fLOAT_SIZE"><span class="hs-identifier hs-type">fLOAT_SIZE</span></a></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><span class="hs-identifier hs-type">Int</span></span><span>
</span><span id="line-38"></span><span id="fLOAT_SIZE"><span class="annot"><span class="annottext">fLOAT_SIZE :: Int
</span><a href="GHC.Settings.Constants.html#fLOAT_SIZE"><span class="hs-identifier hs-var hs-var">fLOAT_SIZE</span></a></span></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Int
</span><span class="hs-number">4</span></span><span>
</span><span id="line-39"></span><span>
</span><span id="line-40"></span><span class="hs-comment">-- Size of double in bytes.</span><span>
</span><span id="line-41"></span><span class="annot"><a href="GHC.Settings.Constants.html#dOUBLE_SIZE"><span class="hs-identifier hs-type">dOUBLE_SIZE</span></a></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><span class="hs-identifier hs-type">Int</span></span><span>
</span><span id="line-42"></span><span id="dOUBLE_SIZE"><span class="annot"><span class="annottext">dOUBLE_SIZE :: Int
</span><a href="GHC.Settings.Constants.html#dOUBLE_SIZE"><span class="hs-identifier hs-var hs-var">dOUBLE_SIZE</span></a></span></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Int
</span><span class="hs-number">8</span></span><span>
</span><span id="line-43"></span><span>
</span><span id="line-44"></span><span class="annot"><a href="GHC.Settings.Constants.html#tARGET_MAX_CHAR"><span class="hs-identifier hs-type">tARGET_MAX_CHAR</span></a></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><span class="hs-identifier hs-type">Int</span></span><span>
</span><span id="line-45"></span><span id="tARGET_MAX_CHAR"><span class="annot"><span class="annottext">tARGET_MAX_CHAR :: Int
</span><a href="GHC.Settings.Constants.html#tARGET_MAX_CHAR"><span class="hs-identifier hs-var hs-var">tARGET_MAX_CHAR</span></a></span></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Int
</span><span class="hs-number">0x10ffff</span></span><span>
</span><span id="line-46"></span></pre></body></html>